package com.shensi.appCollect.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class DeputyCardRule implements Serializable {

    @ApiModelProperty(value = "规则id")
    private Long ruleId;

    @ApiModelProperty(value = "主卡id")
    private Long mainId;

    @ApiModelProperty(value = "电子会员卡类型：1汽油，2柴油，3LNG 4CNG 0 通用卡")
    private String cardOilsType;

    @ApiModelProperty(value = "添加副卡规则类型：1:共享，2:分配")
    private String cardRuleType;

    @ApiModelProperty(value = "允许扫码次数")
    private Long scanCodeNum;

    @ApiModelProperty(value = "已使用次数")
    private Long usedNum;

    @ApiModelProperty(value = "额度生效类型：1:单次，2:永久, 3:每月")
    private String effectiveType;

    @ApiModelProperty(value = "副卡分配金额")
    private BigDecimal shareAmt;

    @ApiModelProperty(value = "电子卡主卡余额")
    private BigDecimal mainAmt;

    @ApiModelProperty(value = "删除标识 0：未删除,1：删除")
    private String isDeleted;

    @ApiModelProperty(value = "添加副卡规则时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}